package com.me.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.me.service.UserInfoService;
@Service
public class RegisterValidateAnnotation {

	@Autowired
	private UserInfoService userinfoserice;
	@Scheduled(fixedDelay =1000*1800)
	@Transactional
	public void deleNoValidateUser(){
		System.out.println("开启终端");
		userinfoserice.deleteUser();
	}
}
